package com.education.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 余一
 * @since 2021-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("system_log")
@ApiModel(value="SystemLog对象", description="")
public class SystemLog extends Model<SystemLog> {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("request_url")
    private String requestUrl;

    @TableField("method")
    private String method;

    @TableField("request_time")
    private String requestTime;

    @TableField("create_date")
    private LocalDateTime createDate;

    @TableField("user_id")
    private Integer userId;

    @TableField("params")
    private String params;

    @TableField("ip")
    private String ip;

    @TableField("exception")
    private String exception;

    @TableField("platform_type")
    private Integer platformType;

    @TableField("operation_desc")
    private String operationDesc;

    @TableField("operation_name")
    private String operationName;

    @TableField("update_date")
    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
